package class_25_孟帅.第一次作业;

import java.util.Scanner;

public class zhishu {
    public static void zhi(int i) {
        int j;
        System.out.print(i+"=");
       for (j=2;j<=i;j++){
           while (i%j==0&&j!=i){
               i/=j;
               System.out.print(j+"*");
           }
           if(i==j){
               System.out.println(i);
           }
        }
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int i=scanner.nextInt();
        zhi(i);

    }
}
